<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
		function Car(Ccard,Cprice,Cuse,boy,speak){
			this.name=Ccard;
			this.age=Cprice;
			this.sex=Cuse;
			this.friend=boy;
			this.boyF=speak;
			this.show=function(){
				alert("I LOVE YOU")
//				
			}
			console.log(this.name+this.age+this.sex+this.friend+this.boyF)
		}
		var mycar=new Car("小明","18","男","有男朋友","男朋友会说话")
		mycar.show()
		
		
    function createCar(){
        var newCar= new Object();
        newCar.card="特斯拉";
        newCar.price=776800;
        newCar.user="已合格";
        newCar.shuoming="这是一款纯电动轿跑车，电动汽车的领航者";
        newCar.show=function(){
            alert(this.card);
        };
        document.write("汽车名字:"+newCar.card+'<br/>'+"合格证:"+newCar.user+'<br/>'+"零售价:"+newCar.price+'<br/>'+"说明书:"+newCar.shuoming)
    }
    var mycar=createCar();
		</script>
	</body>
</html>
